package com.tc.biz.service;

import com.tc.biz.entity.SysUser;

import java.util.List;

/**
 * @author zengqingfa
 * @date 2019/10/18 15:41
 * @description
 * @email zengqingfa_java@163.com
 */
public interface IUserService {

    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    void selectByPrimaryKey();

    List<SysUser> findAll();

    /**
     * 人员分页列表
     *
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<SysUser> findByPage(Integer pageNo, Integer pageSize);

    /**
     * 通过角色key查找对应的人
     *
     * @param roleKey
     * @return
     */
    List<SysUser> findUserByRoleKey(String roleKey);

    /**
     * 通过部门id查询人员
     * @param deptId
     * @return
     */
    List<SysUser> findUserByDeptId(String deptId);


    List<SysUser> findByUsername(String username);
}
